/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.asseco.mio.validators;

/**
 *
 * @author konstantin.sivakov
 */
public class Validator {

    public boolean isText(String s) {

        if (s.isEmpty() || s.contains("") || isNumeric(s)) {
            return false;
        }

        return true;
    }

    public boolean isNumeric(String s) {

        for (int i = 0; i < s.length(); i++) {
            if (!Character.isDigit(s.charAt(i))) {
                return false;
            }
        }
        return true;
    }
    
    
}
